import java.util.Random;

public class Generator {
	
	public static int ranVal = 0;
	public static int ranHealth = 0;
	public static int regenHealth = 0;

	static Random generator = new Random();
	
	public static int genHoriz(int horizMapSize) {
		int mapHoriz = 10;		
		ranVal = generator.nextInt(5);
		mapHoriz = mapHoriz + ranVal;
		horizMapSize = mapHoriz;	
		return horizMapSize;
	}
	
	public static int genVert(int vertMapSize) {
		int mapVert = 10;	
		ranVal = generator.nextInt(5);
		mapVert = mapVert + ranVal;
		vertMapSize = mapVert;	
		return vertMapSize;
	}
	
	public static int genHealth(int currentHealth) {
		int healthIndex = 4;	
		ranVal = generator.nextInt(2);
		healthIndex = healthIndex + ranVal;
		currentHealth = healthIndex;		
		return currentHealth;
	}
	
	public static int genOneUp(int oneUp) {
		int upIndex = 1;
		ranVal = generator.nextInt(5);
		upIndex = upIndex + ranVal;
		oneUp = upIndex;	
		return oneUp;
	}
	
	public static int genRegen(int regenHealth) {
		int regenIndex = 1;
		ranVal = generator.nextInt(5);
		regenIndex = regenIndex + ranVal;
		regenHealth = regenIndex;	
		return regenHealth;
	}	
	
	public static String genFood(String eatFood) {
		int foodIndex = 1;
		ranVal = generator.nextInt(5);
		foodIndex = foodIndex + ranVal;
		if (foodIndex == 1){
			eatFood = "banana";
		}
		else if (foodIndex == 2){
			eatFood = "cheeseburger";
		}
		else if (foodIndex == 3){
			eatFood = "burrito";
		}
		else if (foodIndex == 4){
			eatFood = "hotdog";
		}
		else if (foodIndex == 5){
			eatFood = "slice of pizza";
		}
		return eatFood;
	}
	
	public static int endHoriz(int horizEnd) {
		int Horiz = 10;		
		ranVal = generator.nextInt(5);
		Horiz = Horiz + ranVal;
		horizEnd = Horiz;	
		return horizEnd;
	}
	
	public static int endVert(int vertEnd) {
		int Vert = 10;	
		ranVal = generator.nextInt(5);
		Vert = Vert + ranVal;
		vertEnd = Vert;	
		return vertEnd;
	}	

	
}

